﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LiHong.CSharpStudy.Lession1
{
    internal class Circule
    {
        static void Main()
        {
            //for(int i=0;i<数字;i++)     //知道循环次数
            //while(条件)                 //不知道循环次数时用
            //do{  } while(条件);         //循环至少执行一次
            //foreach                     //遍历数组使用

            for (int i = 0; i < 9; i++)
            {
                for (int j = 0; j < 9; j++)
                {
                    if (i == j)
                    {
                        continue;
                    }
                    Console.Write(i);
                    Console.Write(j + " ");
                }
                Console.WriteLine();
            }

            int i1 = 0, j1 = 0;
            while (i1 < 9)
            {
                while (j1<9)
                {
                    Console.Write(i1);
                    Console.Write(j1 + " ");
                    j1++;
                }
                Console.WriteLine();
                i1++;
            }
        }
    }
}
